package cn.crdeng.Service.impl;

import cn.crdeng.Service.UserService;
import cn.crdeng.dao.UserRepository;
import cn.crdeng.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository userRepository;
    @Override
    public User checkUser(String username, String password) {
        return userRepository.findByUsernameAndPassword(username,password);
    }
}
